#ifndef SHAPE_ACTION_H
#define SHAPE_ACTION_H
#include "resizableshape.h"
#include <QStaticText>

/**
 * @class ActionShape
 * Представляет собой элемент Action языка UML.
 */
class ActionShape : public ResizableShape
{
public:
	ActionShape (QGraphicsItem *parent = NULL);
	ActionShape (const QPointF &pos, QGraphicsItem *parent = NULL);
	virtual void setTitle (const QString &newtext);
	virtual const QString &title() const;
	virtual void setDescription (const QString &newtext);
	virtual const QString &description() const;
	virtual void editProperties();
	virtual ActionShape *clone() const;
	virtual void adjustSize();
protected:
	virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
	virtual QPainterPath shape() const;
private:
	QStaticText stext;
	QString _title, _description;
};

#endif // SHAPE_ACTION_H
